package pattern.controller;

import com.github.xiaoymin.knife4j.annotations.ApiSort;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import pattern.annontations.Secure;
import pattern.constant.DefaultSystemConstant;

/**
 * @author Simon
 * @date 2020-08-21
 */
@Api(tags = "虚拟Swagger接口")
@ApiSort(0)
@Controller
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@Secure(-1)
@Slf4j
public class SimulateController {

    @ApiOperation(value = "登陆")
    @PostMapping(DefaultSystemConstant.LOGIN_URL)
    public void login(String account, String password,String code) {
    }

    @ApiOperation(value = "设置语言")
    @GetMapping(DefaultSystemConstant.SET_LOCAL_URL)
    public void setLocal(String local) {
    }
}
